package springcloud.service;

import springcloud.dao.UserDao;
import org.joseph.springcloud.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    public boolean insertUser(User user){
        return userDao.insertUser(user);
    }
    public User queryById(long id){
        return userDao.queryById(id);
    }
}
